package com.study.mike.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.study.mike.model.entity.SaleProduct;
import com.study.mike.model.po.SaleProductPO;
import com.study.mike.model.po.ShelveSaleProductPO;

/**
 * @author KangHui
 * @Date 2022/9/2 15:20
 */
public interface SaleProductService extends IService<SaleProduct> {

    /**
     * 新增商品
     *
     * @param productPO
     * @return
     */
    Boolean addSaleProduct(SaleProductPO productPO);

    /**
     * 下架/下架商品
     *
     * @param po
     * @return
     */
    Boolean shelveSaleProduct(ShelveSaleProductPO po);

    /**
     * 编辑商品信息
     *
     * @param productPO
     * @return
     */
    Boolean editSaleProduct(SaleProductPO productPO);

}
